<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
	<head>
		<title>.:: SISMED - Internar Paciente::.</title>
		<link href="rules.css" rel="stylesheet" type="text/css" />
		<link href="links_text.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
		<!--
		.style3 {color: #0099FF}
		-->
		</style>
	</head>

<body>
<div id="container" style="border-width: 5px; border-style: solid; border-color: blue;background-color:#E8E8EA;">
  <div id="header"><img src="images/cabecalho.jpg" width="769" height="175" /></div>
  <div id="leftBar">
    <c:import url="menuMedico.jsp"></c:import>
  </div>
  <div id="content">
  	<br><br>
  	<center>
		<f:view>
			<h3><h:outputText styleClass="title" value="Listagem de pacientes" /></h3><br><br>
			<h:form>
				<rich:dataTable id="pacientes" border="1" value="#{mBeanInternacao.lista}" binding="#{mBeanInternacao.objDataTablePacienteData}" var="p" rendered="#{not empty mBeanInternacao.lista}" rows="10">
					<h:column>
						<f:facet name="header">
							<h:outputText value="Nome" />
						</f:facet>
						<h:outputText value="#{p.nome}"/>
					</h:column>
					<h:column>
						<f:facet name="header">
							<h:outputText value="Internar" />
						</f:facet>
						<center>
							<h:commandButton action="#{mBeanInternacao.internar}" value="Internar"/>
						</center>
					</h:column>
					<f:facet name="footer">
						<rich:datascroller />
					</f:facet>
				</rich:dataTable>
			</h:form>
		</f:view>
	</center>
  </div>
  <div id="footer">
    <div align="center">:::                         &copy; - 2009 - SISMED :::</div>
  </div>
  
</div>
</body>
</html>